#include "./log.h"
#include "../pub_driver/cmd_can.h"
#include "../main_driver/cmd_uart.h"

using namespace main_driver;
using namespace pub_driver;

void println(const char *format, ...) {

    va_list ap;
    va_start(ap, format);

#ifdef APP_MAIN
    cmdUart->log(format, ap);
#else
    cmdCAN->log(format, ap);
#endif

}
